@baseUrl = http://localhost:4000/api
@token = {{login.response.body.$.access_token}}
@refreshToken = {{login.response.body.$.refresh_token}}

# Login user by email and password
# @name login
POST {{baseUrl}}/auth/login HTTP/1.1
Content-Type: application/json

{
  "email": "evgenii1@gmail.com",
  "password": "222222"
}
###



# Upload some file
POST http://localhost:4000/api/files/upload/img HTTP/1.1
Authorization: Bearer {{token}}
Content-Type: multipart/form-data; boundary=boundary

--boundary
Content-Disposition: form-data; name="file"; filename="photo.png"
Content-Type: image/png

< ../../../../../static/photo.png
--boundary--
###

# Get file bi Id
GET http://localhost:4000/api/files/154 HTTP/1.1
Authorization: Bearer {{token}}

###

# Get file by path
GET http://localhost:4000/static/2023/11/7c8e42b7-73e2-4239-80e9-be247d940fb7.png HTTP/1.1
Authorization: Bearer {{token}}


###

# Delete certificate by url
DELETE http://localhost:4000/files/delete/?certificateUrl=static/2023/11/3c705edf-d1d2-4475-bce7-7e4ce2ce6f18.png HTTP/1.1
Authorization: Bearer {{token}}


###
